﻿namespace Yipusoft.BaseDoc
{
    using System;
    using System.Data.Linq.Mapping;

    [Table(Name="dbo.BaseDocType")]
    public class BaseDocType
    {
        private int _ID;
        private int? _ParentID;
        private string _TypeName;

        [Column(Storage="_ID", DbType="Int NOT NULL")]
        public int ID
        {
            get
            {
                return this._ID;
            }
            set
            {
                if (this._ID != value)
                {
                    this._ID = value;
                }
            }
        }

        [Column(Storage="_ParentID", DbType="Int")]
        public int? ParentID
        {
            get
            {
                return this._ParentID;
            }
            set
            {
                if (this._ParentID != value)
                {
                    this._ParentID = value;
                }
            }
        }

        [Column(Storage="_TypeName", DbType="NVarChar(200)")]
        public string TypeName
        {
            get
            {
                return this._TypeName;
            }
            set
            {
                if (this._TypeName != value)
                {
                    this._TypeName = value;
                }
            }
        }
    }
}

